{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" id="c" method="post">
    <input type="hidden" name="id" value="{$data.id}"  autocomplete="off" placeholder="id"
           class="layui-input">
    <div class="layui-form-item">
        <label class="layui-form-label">咨询类型</label>
        <div class="layui-input-block">
            <select name="content_cate_id" lay-verify="required">
                <option>咨询类型</option>
                {volist name="goods_cate" id="vo"}
                <option value="{$vo.id}" <?php if( $vo['id'] == $data['content_cate_id']){ ?> selected <?php }?>>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">需求领域</label>
        <div class="layui-input-block">
            <textarea name="demand" placeholder="需求领域" class="layui-textarea">{$data.demand}</textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">资质要求</label>
        <div class="layui-input-block">
            <textarea name="require" placeholder="资质要求" class="layui-textarea">{$data.require}</textarea>
        </div>
    </div>

    <div class="layui-form-item effect_start">
        <label class="layui-form-label ">期望服务时间</label>
        <div class="layui-input-block">
            {:Form::datetime("server_time",$data['server_time'],['class'=>'layui-input','data-date-range'=>'--'])}
        </div>
    </div>

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">设备进场时间</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input class="layui-input" id="testTime" value="{$info.go_time}" type="text" name="go_time" placeholder="请选择日期"  lay-verify="required"-->
<!--                   autocomplete="off" readonly>-->
<!--        </div>-->
<!--    </div>-->

    <div class="layui-form-item">
        <label class="layui-form-label">咨询内容</label>
        <div class="layui-input-block">
            <input type="text" name="content" value="{$data.content}" lay-verify="required" autocomplete="off" placeholder="咨询内容"
                   class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">专家意见</label>
        <div class="layui-input-block">
            <textarea name="opinion" placeholder="专家意见" class="layui-textarea">{$data.opinion}</textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">关联信息</label>
        <div class="layui-input-block">
            <textarea name="message_info" placeholder="关联信息" class="layui-textarea">{$data.message_info}</textarea>
        </div>
    </div>


<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">排序</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="sort" value="{$data.sort}" value="1" lay-verify="required|number" autocomplete="off"-->
<!--                   placeholder="排序"-->
<!--                   class="layui-input">-->
<!--        </div>-->
<!--    </div>-->



    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use(['yznForm', 'form', 'laydate'], function () {
        var yznForm = layui.yznForm;
        var form = layui.form;
        laydate = layui.laydate;
        yznForm.bindevent($("form.layui-form"));


        laydate.render({
            elem: '#testTime,#testTime2' //指定元素
        });

    });
</script>
{/block}